CREATE TABLE [dbo].[PhoneNumber]
(
[Oid] [uniqueidentifier] NOT NULL ROWGUIDCOL,
[Number] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Party] [uniqueidentifier] NULL,
[PhoneType] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OptimisticLockField] [int] NULL,
[GCRecord] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PhoneNumber] ADD CONSTRAINT [PK_PhoneNumber] PRIMARY KEY CLUSTERED  ([Oid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [iGCRecord_PhoneNumber] ON [dbo].[PhoneNumber] ([GCRecord]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [iParty_PhoneNumber] ON [dbo].[PhoneNumber] ([Party]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PhoneNumber] WITH NOCHECK ADD CONSTRAINT [FK_PhoneNumber_Party] FOREIGN KEY ([Party]) REFERENCES [dbo].[Party] ([Oid]) NOT FOR REPLICATION
GO
